package com.liang.lingdong.model.exam.dto;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 更新考试
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UpdateExamDto {

    /**
     * 主键id
     */
    @NotNull
    private Long businessId;

    /**
     * 考试名称
     */
    @NotBlank
    @Length(max = 50)
    private String examName;

    /**
     * 考试简介
     */
    @NotBlank
    @Length(max = 100)
    private String examContent;

    /**
     * 开始时间
     */
    @NotNull
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull
    private Date endTime;

    /**
     * 是否允许切屏
     */
    private Integer allowCuttingScreen;
}
